﻿<phone:PhoneApplicationPage 
    x:Class="BitcoinMarket.ViewModels.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">
    
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Background="#FFF7931A" Grid.Row="0" Height="130">
            <StackPanel x:Name="TitlePanel" Margin="12,17,0,28">
                <TextBlock Margin="12, 10, 0, -10" x:Name="ApplicationTitle" Foreground="White" Text="{Binding Path=LocalizedResources.AppTitleCapital, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBlock x:Name="PageTitle" Foreground="White" Text="{Binding Path=LocalizedResources.about, Source={StaticResource LocalizedStrings}}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
            </StackPanel>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <ScrollViewer Style="{StaticResource ScrollViewerStyle1}" Grid.Row="1" BorderBrush="Transparent">
            <Grid HorizontalAlignment="Left" x:Name="ContentPanel" Margin="21, 0, 10, 0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <Image Margin="0, 10, 0, 0" Width="374" Grid.Row="0" Grid.ColumnSpan="2" Grid.Column="0" x:Name="HeaderImage" HorizontalAlignment="Left" Source="/Images/header_logo.png" />

                <TextBlock Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" HorizontalAlignment="Left" Foreground="#FF4D4D4D" Text="{Binding Path=LocalizedResources.appVersion, Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" UseLayoutRounding="True" Margin="0,-29,0,0" Width="Auto" FontSize="24" />
                <TextBlock FontWeight="SemiBold" Grid.Row="2" Grid.ColumnSpan="2" Grid.Column="0" HorizontalAlignment="center" Foreground="#FF4D4D4D" Text="{Binding Path=LocalizedResources.Copyright, Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" UseLayoutRounding="True" Margin="0,5,0,0" Width="Auto" FontSize="24" />
                <TextBlock FontWeight="SemiBold" Grid.Row="3" Grid.ColumnSpan="2" Grid.Column="0" HorizontalAlignment="center" Foreground="#FF4D4D4D" Text="{Binding Path=LocalizedResources.Authors, Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" UseLayoutRounding="True" Margin="0,5,0,0" Width="Auto" FontSize="24" />
                
                <TextBlock Grid.Row="4" Grid.ColumnSpan="2" Grid.Column="0" HorizontalAlignment="Left" Foreground="#FF4D4D4D" Text="{Binding Path=LocalizedResources.AboutText1, Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" UseLayoutRounding="True" Margin="0,15,0,0" Width="Auto" />
                <TextBlock Grid.Row="5" Grid.ColumnSpan="2" Grid.Column="0" HorizontalAlignment="Left" Foreground="#FF4D4D4D" Text="{Binding Path=LocalizedResources.AboutText2, Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" UseLayoutRounding="True" Margin="0,15,0,0" Width="Auto" />
                <Button Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Content="{Binding Path=LocalizedResources.SendAddrBtn, Source={StaticResource LocalizedStrings}}" Style="{StaticResource ButtonStyle1}" FontSize="20" BorderBrush="#FF4D4D4D" Tap="Button_Tap_2" />
                
                <TextBlock Grid.Row="7" Grid.ColumnSpan="2" Grid.Column="0" HorizontalAlignment="Left" Foreground="#FF4D4D4D" Text="{Binding Path=LocalizedResources.RateAndReviewLabel, Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" UseLayoutRounding="True" Margin="0,0,0,0" Width="Auto" />
                <Button Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Content="{Binding Path=LocalizedResources.ReviewBtnLabel, Source={StaticResource LocalizedStrings}}" Style="{StaticResource ButtonStyle1}" Tap="Button_Tap" FontSize="20" BorderBrush="#FF4D4D4D" />

                <TextBlock Grid.Row="9" Grid.ColumnSpan="2" Grid.Column="0" HorizontalAlignment="Left" Foreground="#FF4D4D4D" Text="{Binding Path=LocalizedResources.FeedbackLabel, Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" UseLayoutRounding="True" Margin="0,0,0,0" Width="Auto" />
                <Button Grid.Row="10" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Content="{Binding Path=LocalizedResources.FeedbackBtnLabel, Source={StaticResource LocalizedStrings}}" Style="{StaticResource ButtonStyle1}" FontSize="20" BorderBrush="#FF4D4D4D" Tap="Button_Tap_1" />

                <TextBlock Grid.Row="11" Grid.ColumnSpan="2" Grid.Column="0" HorizontalAlignment="Left" Foreground="#A04D4D4D" Text="{Binding Path=LocalizedResources.DataSourcesLabel, Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" UseLayoutRounding="True" Margin="0,10,0,0" Width="Auto" FontSize="16" />
                <HyperlinkButton HorizontalAlignment="Left" Foreground="#A1F7931A" Grid.Row="12" Content="Bitcoincharts.com" FontSize="16" Tap="HyperlinkButton_Tap_1" />
                <HyperlinkButton HorizontalAlignment="Left" Foreground="#A1F7931A" Grid.Row="13" Content="Blockchain.info" FontSize="16" Tap="HyperlinkButton_Tap" />
                <HyperlinkButton HorizontalAlignment="Left" Foreground="#A1F7931A" Grid.Row="14" Content="Quandl.com" FontSize="16" Tap="HyperlinkButton_Tap_2" Margin="0, 3, 0, 25" />
            </Grid>
        </ScrollViewer>
    </Grid>
</phone:PhoneApplicationPage>
